<%@ page import="com.suptracking.entity.*" %>
<% 
boolean Tlog =false;
boolean log =true;
String contextPath = getServletContext().getContextPath();

HttpSession Session= request.getSession();
User user =(User) Session.getAttribute("User");
if( user==null  ){
	log=false;
	
}
else{
	
		if (user.isAccType() ==true){
		Tlog=true;
	}
}


%>

<nav>
	<ul style="list-style: none;">
		<li><a href="<%= contextPath %>/index">Accueil</a></li>
		

		<% if(log) { %>
		<li><p>Bonjour  : ${User.firstName}</p></li>
		<li><a
			href="<%= contextPath %>/RegisteredContent/ManageCar">Manage Cars
				</a></li>
				<li><a
			href="<%= contextPath %>/RegisteredContent/ManageZone">Manage Zone
				</a></li>
		<li><a href="<%= contextPath %>/RegisteredContent/ManageUser">User Profil
				</a></li>
		<li><a href="<%= contextPath %>/logout">Logout</a></li>

		<% if(Tlog) { %>
		<li><a
			href="<%= contextPath %>/RegisteredContent/Admin/AdminPanel">AdminPanel</a></li>
		<% } %>
	</ul>
</nav>

<% } else { %>

	<a href="<%= contextPath %>/login.jsp">Login</a>
	<a href="<%= contextPath %>/register.jsp">Register</a>
		</ul>
</nav>
</div>
<% } %>






